package com.byxy.ssm.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.byxy.ssm.mapper.TabMapper;
import com.byxy.ssm.pojo.Tab;
import com.byxy.ssm.service.TabService;
@Service
@Transactional
public class TabServiceImpl implements TabService{

	@Resource 
	private TabMapper tabMapper;
	@Override
	public int delete(Integer tabId) {
		// TODO Auto-generated method stub
		return tabMapper.delete(tabId);
	}

	@Override
	public int insert(Tab tab) {
		// TODO Auto-generated method stub
		return tabMapper.insert(tab);
	}

	@Override
	public Tab getById(Integer tabId) {
		// TODO Auto-generated method stub
		return tabMapper.getById(tabId);
	}

	@Override
	public List<Tab> findAll() {
		// TODO Auto-generated method stub
		return tabMapper.findAll();
	}

	@Override
	public int update(Tab tab) {
		// TODO Auto-generated method stub
		return tabMapper.update(tab);
	}

}
